import VueRouter from 'vue-router'
import About from '../pages/About'
import Home from '../pages/Home'
import Message from '../pages/Message'
import News from '../pages/News'
import NewsDetail from '../pages/NewsDetail'


export default new VueRouter({
    routes:[
        {
            path:'/about',
            component:About
        },
        {
            path:'/home',
            component:Home,
            children:[
                {
                    path:'message',
                    component:Message
                },
                {
                    path:'news',
                    component:News,
                    children:[
                        {
                            name:'xiangqing',
                            path:'newsDetail',
                            component:NewsDetail
                        }
                    ]
                }
            ]
                
        },
        {
            path:'/',
            component:Home
        }
    ]
})